<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>图片上传</title>
{js:jquery}
{js:dialog}
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">
<link rel="stylesheet" href="//cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css">
</head>
<body>
<div class="container">
	<form action="#" method='post' enctype='multipart/form-data' id="uploadForm">
		<ul class="list-group">
			<li class="list-group-item">
				<label class="">选择上传图片</label>
			</li>
			<li class="list-group-item">
				<input type='file' class='' name='attach' />
			</li>
		</ul>
	</form>
</div>

<script type="text/javascript">
$(function(){
	var urlVal = "{echo:IFilter::addSlash( IReq::get('callback') )}";
	$('#uploadForm').attr('action',urlVal);
});
</script>
</body>
</html>
